List Job templates

This API retrieves list of all template jobs that have been created and associated with a specific project.

GET{accelqLoginUrl}/awb/api/2.0/{tenantCode}/{projectCode}/test-exec/jobs/templates

Headers

HeaderValue
user_idLogin username (email)
api_keyAPI key of the user for authentication
Content-Typeapplication/json
Acceptapplication/json

Parameters

ParameterTypeRequiredDescription
accelqLoginUrlstringYesThe AccelQ login URL for API access.
tenantCodestringYesTenant code for identifying the organization.
projectCodestringYesProject Code found under Auth properties of ACCELQ User Profile
pageintegerNoPage number for pagination.
pageSizeintegerNoNumber of items per page (Maximum: 100).
user_idstringYesLogin username (email)
api_keystringYesAPI key of the user for authentication

Responses

200 - Successful response with a list of template jobs.

json
{
  "page": 1,
  "pageSize": 10,
  "totalPages": 3,
  "totalCount": 21,
  "results": [
    {
      "jobPid": 5,
      "purpose": "Fund Transfer Testing",
      "runEntityPid": "SCENARIO",
      "entityPid": 42,
      "createdUser": "Demo@acmeInc.com",
      "createdTimestamp": "1736507047"
    },
    {
      "jobPid": 51,
      "purpose": "Ticket booking Testing",
      "runEntityPid": "TEST_SUITE",
      "entityPid": 7,
      "createdUser": "Demo2@acmeInc.com",
      "createdTimestamp": "1736587647"
    },
    {
      "jobPid": 67,
      "purpose": "Screenshot testing",
      "runEntityPid": "SCENARIO",
      "entityPid": 2,
      "createdUser": "Demo1@acmeInc.com",
      "createdTimestamp": "1733457047"
    }
  ]
}

403 - Forbidden - User does not have permission to fetch template Jobs

json
{
  "error": "User do not have authorization to access this feature."
}

422 - Project not found.

json
{
  "error": "Project with code 'proj123' not found."
}

cURL Command Builder

URL Parameters

Headers

Request Sample (cURL)

curl -X GET "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/${{projectCode}}/test-exec/jobs/templates?page=${{page}}&pageSize=${{pageSize}}" \
  -H "user_id: ${{user_id}}" \
  -H "api_key: ${{api_key}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"